#ifndef DYNSTRING_H
#define DYNSTRING_H

#include <stdint.h>

typedef struct DynamicString {
    char* data;
    size_t size;
    size_t capacity;
} DynamicString;

/// Initialize a dynamic string
extern void dynstring_init(DynamicString* dynstring);

/// Unload a dynamic string
extern void dynstring_free(DynamicString* dynstring);

/// Clear a dynamic string
extern void dynstring_clear(DynamicString* string);

/// Append text to a dynamic string
extern void dynstring_push_back(DynamicString* dynstring, const char* string);

#endif